package com.ambimmort.ucagent.modules.webservice;

import java.util.Calendar;

/**
 * Created by hedingwei on 2015/1/17.
 */
public class Thing {
    public static final int ADD = 0;
    public static final int DLETE = 1;
    public static final int UPDATE = 2;
    private Object data;

    private int action;

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public int getAction() {
        return action;
    }

    public void setAction(int action) {
        this.action = action;
    }

    public static void main(String[] args){
        Calendar c = Calendar.getInstance();
        c.set(c.get(Calendar.YEAR),0,1,0,0,0);
        int idpart1 = "adfsdfadf".hashCode();
        int idpart2 = c.get(Calendar.YEAR);
        int idpart3 =(int)((System.currentTimeMillis()-c.getTimeInMillis())/(1000*60*60*24));
        int idpart5 = 10+ (int)(Math.random()*89);
        String p1 = idpart1+""+idpart2+""+idpart3+""+idpart5;

    }
}
